import request from '@/utils/request'

//统计社区
export const getCountCommunity =async () => {
  return await request.get('/comsys/mange/count')
}

//统计房屋数量
export const getCountHouse =async () => {
    return await request.get('/comsys/house/count')
}
//统计总业主数量
export const getCountOwner =async () => {
    return await request.get('/owner/owner/count')
}
//统计待交账单
export const getCountBill =async () => {
    return await request.get('/charge/billa/count')
}
//统计待处理报
export const getCountReport =async () => {
    return await request.get('/comsys/report/count')
}

//统计今日投诉数量
export const getCountTodayReport =async () => {
    return await request.get('/property/complaint/count')
}

//各社区房屋数量
export const getHouseGroupByCommunity =async () => {
    return await request.get('/comsys/house/groupByCommunity')
}

//房屋状态统计
export const getHouseGroupByStatus =async () => {
    return await request.get('/comsys/house/groupByStatus')
}
//账单状态统计
export const getBillGroupByStatus =async () => {
    return await request.get('/charge/billa/groupByStatus')
}

export const getReportCount=async ()=>  await request.get('/property/repair/count');
